<%@ taglib prefix="wctags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://www.ptc.com/windchill/taglib/components" prefix="jca"%>
<%@ taglib prefix="w" uri="http://www.ptc.com/windchill/taglib/wrappers"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/netmarkets/jsp/components/createEditUIText.jspf"%>
<%@ include file="/netmarkets/jsp/components/includeWizBean.jspf"%>

<%--> Get resource bundle. <--%>
<%--> Need to set label for protected attribute.  Framework doesn't get it from data utility or model RB<--%>
<%@ page import="com.ptc.windchill.enterprise.baseline.baselineResource" %>
<fmt:setLocale value="${localeBean.locale}"/>
<fmt:setBundle basename="com.ptc.windchill.enterprise.baseline.baselineResource" />
<fmt:message var="protectedLabel" key="<%= baselineResource.STRICT %>" />
<fmt:message var="lockLabel" key="<%= baselineResource.BASELINE_LOCK_LABEL %>" />





<%-->Build a table descriptor and assign it to page variable td<--%>
<jca:describeAttributesTable var="attributesTableDescriptor" 
                             scope="request" 
                             id="createSetAttributes" 
                             mode="CREATE" 
                             componentType="WIZARD_ATTRIBUTES_TABLE" 
                             type="wt.vc.baseline.ManagedBaseline"
                             label="${attributesTableHeader}">						 
  <jca:describeProperty id="name" inputRequired="true"/>
  <jca:describeProperty id="number" inputRequired="true"/>
  <jca:describeProperty id="description"/>
  <jca:describeProperty id="protected" need="strict" label="${protectedLabel}" includeBlankOption="false" />
  <jca:describeProperty id="folder.id" />
  <jca:describeProperty id="lifeCycle.id"/>
  <jca:describeProperty id="teamTemplate.id"/>
  <jca:describeProperty id="ALL_CUSTOM_HARD_ATTRIBUTES_FOR_INPUT_TYPE"/>
  
  <jca:describeProperty id="ALL_SOFT_NON_CLASSIFICATION_SCHEMA_ATTRIBUTES"/>
 </jca:describeAttributesTable> 

<%@ include file="/netmarkets/jsp/components/setAttributesWizStep.jspf"%>

<div id="lockCheckbox" >
  <table>
    <tr>
      <td></td>
      <td align="right"><w:checkBox id="lock" name="lock" label="${lockLabel}" renderLabel="true" renderLabelOnRight="true" required="false" checked="false" /></td> 
    </tr>
  </table>
</div>

<%@ include file="/netmarkets/jsp/util/end.jspf"%>
